package org.shay.springcloud.service.user.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.shay.springcloud.service.user.wrapper.SystemService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author shay
 * @date 2020/5/9
 */
@RestController
@RequestMapping("user")
@Api(value = "User", tags = "User接口")
public class UserController {

	@Resource
	private SystemService systemService;

	@GetMapping("hello")
	@ApiOperation("服务调用测试")
	public String hello(String key) {
		return systemService.test(key);
	}
}
